Sets how fast the looks of a text effect go, from 0 to 400 percent (100 is the effect as you made it, and what it is until you call this; 50 is half as fast, 200 twice as fast, 0 stands still where it is). The percent multiplies the Speed of every look of the effect’s Letters track, so a Tornado turns faster, a Wave runs faster and a Drop in lands sooner. It does not change how long a pulse takes, or how strong the effect is (text_effect_strength does that). Call it from any event, a Step event included, and change it as the game goes: the letters speed up or slow down smoothly, they never jump.
Works differently on Game Boy - The Game Boy runs the clock of the effect's looks at the percent, so the letters never jump when the speed changes.
Works differently on Game Boy Color - Text effects play in a plainer form: letters appear one by one, colors change as made, text shakes or ripples sideways; letters never turn or grow.
Works differently on Sega Genesis - The Sega Genesis plays a text effect its own way. This version plays the Tint track (the words' color mixed toward the effect's color, with the effect's timing) and the Wave and the Shake of the Letters track (each letter its own sprite). It does not play the other Letters looks yet and cannot turn, resize, block or fade words, so the other Letters looks and the Stretch, Blocks, See-through, Scale, Rotate and Flip tracks do not show (the build says which effect has one); use Make a sprite from this effect for those.
On other consoles this differs: see Side by side and How the consoles differ.
text_effect_speed(effect, percent)| Name | Type |
|---|---|
effect | overlay |
percent | int |
Nothing.
Sets how fast the looks of a text effect go, from 0 to 400 percent. 100 is the effect as you made it, and what it is until you call this; 50 is half as fast, 200 twice as fast, and 0 stands still where it is. The percent multiplies the Speed of every look of the effect's Letters track, so a Tornado turns faster, a Wave runs faster, a Shake jitters more often and a Drop in lands sooner.
Call it from any event, a Step event included, and change it as the game goes: the letters speed up and slow down smoothly, they never jump.
tween_to(pace, 300, 120, EASE_LINEAR);
text_effect_speed(te_doc_flash, int_round(pace));The effect starts at its own pace and, over two seconds, gets three times as fast. pace is a number the object keeps (pace = 100.0; in its Create event).
text_effect_start every frame does not reset it. text_effect_speed(effect, 100) puts it back.text_effect_strength does that). A track whose way of moving is Stands still is frozen and stays frozen at any speed; use Pulses, keeps going.text_effect_speed_get. A sprite effect has sprite_effect_speed.The effect keeps a clock of its own that runs that percent as fast, and every look reads it; that is why changing the speed never makes a letter jump. Up to 8 text effects can have a speed that is not 100 at one time. A game that never calls text_effect_speed has none of this in its cartridge.
The number belongs to the effect and is kept until you change it (calling text_effect_start every frame, as a Draw event does, does not reset it); 100 forgets it. It can be set before the effect is first played, and for up to 8 effects at a time that are not at 100. The effect keeps a clock of its own that runs that percent as fast, and every look reads it, so changing the speed in the middle never makes a letter jump. A look that stands still because its track stands still stays still. A game that never calls it has none of this in its cartridge.